﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{
    public abstract class EventMessageBase
    {
        [XmlElement("EVENTUSER")]
        public string EventUser { get; set; } = TibcoConfiguration.BasicConfiguration.EventUser;
        [XmlElement("EVENTCOMMENT")]
        public string EventComment { get; set; } = "";
        [XmlElement("LANGUAGE")]
        public string Language { get; set; }
    }

    public abstract class MachineEventBase : EventMessageBase
    {
        [XmlElement("MACHINENAME")]
        public string MachineName { get; set; }
        [XmlElement("PORTNAME")]
        public string PortName { get; set; }
    }

    public abstract class PalletEventBase : MachineEventBase
    {
        [XmlElement("PALLETNAME")]
        public string PalletName { get; set; }
    }

    public abstract class LineEventBase : EventMessageBase
    {

        [XmlElement("LINENAME")]
        public string LineName { get; set; }
    }
}
